package br.ufpe.cin.camid.core.agents;

import java.util.TimerTask;

import com.google.inject.Inject;
import com.google.inject.MembersInjector;

public class AgentInjectionListener<A extends TimerTask> implements MembersInjector<A> {

	private AgentConfig agentConfig;
	
	
	public AgentInjectionListener(AgentConfig agentConfig) {
		this.agentConfig = agentConfig;
	}

	@Override
	public void injectMembers(A instance) 
	{	
		agentConfig.register(instance);
	}

}
